package com.iris.live.services.data.models;

import javax.persistence.*;
import java.io.Serializable;
import java.sql.Date;
import java.sql.Timestamp;

/**
 * Created by DF on 10/30/2016.
 */
@SuppressWarnings("JpaDataSourceORMInspection")
@Entity
@Table(name = "lsh车型", schema = "iris_dch_dev", catalog = "")
public class Lsh车型Model implements Serializable {
    private int 车型编号;
    private String 来源;
    private String 品牌;
    private String 级别;
    private String 车型;
    private String de;
    private String 车型详细;
    private String cn;
    private Integer 采购价;
    private Integer msrp;
    private String 分类;
    private String 底盘;
    private String 底盘详细;
    private String 座位数;
    private Date 发布日期;
    private String 退市日期;
    private Date 启用日期;
    private Date 停用日期;
    private String type;
    private String model;
    private String modelDesc;
    private String variant;
    private String variantDescCn;
    private String variantDescEn;
    private String factoryOp1;
    private String factoryOp2;
    private Date buildDate;
    private String 备注;
    private String modelCode;
    private String modelName;
    private String 更新账号;
    private Timestamp 更新时间;
    private Integer cPkid;
    private String appearance;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "车型编号")
    public int get车型编号() {
        return 车型编号;
    }

    public void set车型编号(int 车型编号) {
        this.车型编号 = 车型编号;
    }

    @Basic
    @Column(name = "来源")
    public String get来源() {
        return 来源;
    }

    public void set来源(String 来源) {
        this.来源 = 来源;
    }

    @Basic
    @Column(name = "品牌")
    public String get品牌() {
        return 品牌 == null ? null : 品牌.trim();
    }

    public void set品牌(String 品牌) {
        this.品牌 = 品牌;
    }

    @Basic
    @Column(name = "级别")
    public String get级别() {
        return 级别 == null ? null : 级别.trim();
    }

    public void set级别(String 级别) {
        this.级别 = 级别;
    }

    @Basic
    @Column(name = "车型")
    public String get车型() {
        return 车型 == null ? null : 车型.trim();
    }

    public void set车型(String 车型) {
        this.车型 = 车型;
    }

    @Basic
    @Column(name = "车型_DE")
    public String getDe() {
        return de == null ? null : de.trim();
    }

    public void setDe(String de) {
        this.de = de;
    }

    @Basic
    @Column(name = "车型详细")
    public String get车型详细() {
        return 车型详细 == null ? null : 车型详细.trim();
    }

    public void set车型详细(String 车型详细) {
        this.车型详细 = 车型详细;
    }

    @Basic
    @Column(name = "车型详细_CN")
    public String getCn() {
        return cn;
    }

    public void setCn(String cn) {
        this.cn = cn;
    }

    @Basic
    @Column(name = "采购价")
    public Integer get采购价() {
        return 采购价;
    }

    public void set采购价(Integer 采购价) {
        this.采购价 = 采购价;
    }

    @Basic
    @Column(name = "MSRP")
    public Integer getMsrp() {
        return msrp;
    }

    public void setMsrp(Integer msrp) {
        this.msrp = msrp;
    }

    @Basic
    @Column(name = "分类")
    public String get分类() {
        return 分类;
    }

    public void set分类(String 分类) {
        this.分类 = 分类;
    }

    @Basic
    @Column(name = "底盘")
    public String get底盘() {
        return 底盘;
    }

    public void set底盘(String 底盘) {
        this.底盘 = 底盘;
    }

    @Basic
    @Column(name = "底盘详细")
    public String get底盘详细() {
        return 底盘详细;
    }

    public void set底盘详细(String 底盘详细) {
        this.底盘详细 = 底盘详细;
    }

    @Basic
    @Column(name = "座位数")
    public String get座位数() {
        return 座位数;
    }

    public void set座位数(String 座位数) {
        this.座位数 = 座位数;
    }

    @Basic
    @Column(name = "发布日期")
    public Date get发布日期() {
        return 发布日期;
    }

    public void set发布日期(Date 发布日期) {
        this.发布日期 = 发布日期;
    }

    @Basic
    @Column(name = "退市日期")
    public String get退市日期() {
        return 退市日期;
    }

    public void set退市日期(String 退市日期) {
        this.退市日期 = 退市日期;
    }

    @Basic
    @Column(name = "启用日期")
    public Date get启用日期() {
        return 启用日期;
    }

    public void set启用日期(Date 启用日期) {
        this.启用日期 = 启用日期;
    }

    @Basic
    @Column(name = "停用日期")
    public Date get停用日期() {
        return 停用日期;
    }

    public void set停用日期(Date 停用日期) {
        this.停用日期 = 停用日期;
    }

    @Basic
    @Column(name = "Type")
    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Basic
    @Column(name = "Model")
    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    @Basic
    @Column(name = "Model_Desc")
    public String getModelDesc() {
        return modelDesc;
    }

    public void setModelDesc(String modelDesc) {
        this.modelDesc = modelDesc;
    }

    @Basic
    @Column(name = "Variant")
    public String getVariant() {
        return variant;
    }

    public void setVariant(String variant) {
        this.variant = variant;
    }

    @Basic
    @Column(name = "Variant_Desc_CN")
    public String getVariantDescCn() {
        return variantDescCn;
    }

    public void setVariantDescCn(String variantDescCn) {
        this.variantDescCn = variantDescCn;
    }

    @Basic
    @Column(name = "Variant_Desc_EN")
    public String getVariantDescEn() {
        return variantDescEn;
    }

    public void setVariantDescEn(String variantDescEn) {
        this.variantDescEn = variantDescEn;
    }

    @Basic
    @Column(name = "Factory_OP1")
    public String getFactoryOp1() {
        return factoryOp1;
    }

    public void setFactoryOp1(String factoryOp1) {
        this.factoryOp1 = factoryOp1;
    }

    @Basic
    @Column(name = "Factory_OP2")
    public String getFactoryOp2() {
        return factoryOp2;
    }

    public void setFactoryOp2(String factoryOp2) {
        this.factoryOp2 = factoryOp2;
    }

    @Basic
    @Column(name = "Build_date")
    public Date getBuildDate() {
        return buildDate;
    }

    public void setBuildDate(Date buildDate) {
        this.buildDate = buildDate;
    }

    @Basic
    @Column(name = "备注")
    public String get备注() {
        return 备注;
    }

    public void set备注(String 备注) {
        this.备注 = 备注;
    }

    @Basic
    @Column(name = "ModelCode")
    public String getModelCode() {
        return modelCode;
    }

    public void setModelCode(String modelCode) {
        this.modelCode = modelCode;
    }

    @Basic
    @Column(name = "ModelName")
    public String getModelName() {
        return modelName;
    }

    public void setModelName(String modelName) {
        this.modelName = modelName;
    }

    @Basic
    @Column(name = "更新账号")
    public String get更新账号() {
        return 更新账号;
    }

    public void set更新账号(String 更新账号) {
        this.更新账号 = 更新账号;
    }

    @Basic
    @Column(name = "更新时间")
    public Timestamp get更新时间() {
        return 更新时间;
    }

    public void set更新时间(Timestamp 更新时间) {
        this.更新时间 = 更新时间;
    }

    @Basic
    @Column(name = "C_PKID")
    public Integer getcPkid() {
        return cPkid;
    }

    public void setcPkid(Integer cPkid) {
        this.cPkid = cPkid;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Lsh车型Model that = (Lsh车型Model) o;

        if (车型编号 != that.车型编号) return false;
        if (来源 != null ? !来源.equals(that.来源) : that.来源 != null) return false;
        if (品牌 != null ? !品牌.equals(that.品牌) : that.品牌 != null) return false;
        if (级别 != null ? !级别.equals(that.级别) : that.级别 != null) return false;
        if (车型 != null ? !车型.equals(that.车型) : that.车型 != null) return false;
        if (de != null ? !de.equals(that.de) : that.de != null) return false;
        if (车型详细 != null ? !车型详细.equals(that.车型详细) : that.车型详细 != null) return false;
        if (cn != null ? !cn.equals(that.cn) : that.cn != null) return false;
        if (采购价 != null ? !采购价.equals(that.采购价) : that.采购价 != null) return false;
        if (msrp != null ? !msrp.equals(that.msrp) : that.msrp != null) return false;
        if (分类 != null ? !分类.equals(that.分类) : that.分类 != null) return false;
        if (底盘 != null ? !底盘.equals(that.底盘) : that.底盘 != null) return false;
        if (底盘详细 != null ? !底盘详细.equals(that.底盘详细) : that.底盘详细 != null) return false;
        if (座位数 != null ? !座位数.equals(that.座位数) : that.座位数 != null) return false;
        if (发布日期 != null ? !发布日期.equals(that.发布日期) : that.发布日期 != null) return false;
        if (退市日期 != null ? !退市日期.equals(that.退市日期) : that.退市日期 != null) return false;
        if (启用日期 != null ? !启用日期.equals(that.启用日期) : that.启用日期 != null) return false;
        if (停用日期 != null ? !停用日期.equals(that.停用日期) : that.停用日期 != null) return false;
        if (type != null ? !type.equals(that.type) : that.type != null) return false;
        if (model != null ? !model.equals(that.model) : that.model != null) return false;
        if (modelDesc != null ? !modelDesc.equals(that.modelDesc) : that.modelDesc != null) return false;
        if (variant != null ? !variant.equals(that.variant) : that.variant != null) return false;
        if (variantDescCn != null ? !variantDescCn.equals(that.variantDescCn) : that.variantDescCn != null)
            return false;
        if (variantDescEn != null ? !variantDescEn.equals(that.variantDescEn) : that.variantDescEn != null)
            return false;
        if (factoryOp1 != null ? !factoryOp1.equals(that.factoryOp1) : that.factoryOp1 != null) return false;
        if (factoryOp2 != null ? !factoryOp2.equals(that.factoryOp2) : that.factoryOp2 != null) return false;
        if (buildDate != null ? !buildDate.equals(that.buildDate) : that.buildDate != null) return false;
        if (备注 != null ? !备注.equals(that.备注) : that.备注 != null) return false;
        if (modelCode != null ? !modelCode.equals(that.modelCode) : that.modelCode != null) return false;
        if (modelName != null ? !modelName.equals(that.modelName) : that.modelName != null) return false;
        if (更新账号 != null ? !更新账号.equals(that.更新账号) : that.更新账号 != null) return false;
        if (更新时间 != null ? !更新时间.equals(that.更新时间) : that.更新时间 != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = 车型编号;
        result = 31 * result + (来源 != null ? 来源.hashCode() : 0);
        result = 31 * result + (品牌 != null ? 品牌.hashCode() : 0);
        result = 31 * result + (级别 != null ? 级别.hashCode() : 0);
        result = 31 * result + (车型 != null ? 车型.hashCode() : 0);
        result = 31 * result + (de != null ? de.hashCode() : 0);
        result = 31 * result + (车型详细 != null ? 车型详细.hashCode() : 0);
        result = 31 * result + (cn != null ? cn.hashCode() : 0);
        result = 31 * result + (采购价 != null ? 采购价.hashCode() : 0);
        result = 31 * result + (msrp != null ? msrp.hashCode() : 0);
        result = 31 * result + (分类 != null ? 分类.hashCode() : 0);
        result = 31 * result + (底盘 != null ? 底盘.hashCode() : 0);
        result = 31 * result + (底盘详细 != null ? 底盘详细.hashCode() : 0);
        result = 31 * result + (座位数 != null ? 座位数.hashCode() : 0);
        result = 31 * result + (发布日期 != null ? 发布日期.hashCode() : 0);
        result = 31 * result + (退市日期 != null ? 退市日期.hashCode() : 0);
        result = 31 * result + (启用日期 != null ? 启用日期.hashCode() : 0);
        result = 31 * result + (停用日期 != null ? 停用日期.hashCode() : 0);
        result = 31 * result + (type != null ? type.hashCode() : 0);
        result = 31 * result + (model != null ? model.hashCode() : 0);
        result = 31 * result + (modelDesc != null ? modelDesc.hashCode() : 0);
        result = 31 * result + (variant != null ? variant.hashCode() : 0);
        result = 31 * result + (variantDescCn != null ? variantDescCn.hashCode() : 0);
        result = 31 * result + (variantDescEn != null ? variantDescEn.hashCode() : 0);
        result = 31 * result + (factoryOp1 != null ? factoryOp1.hashCode() : 0);
        result = 31 * result + (factoryOp2 != null ? factoryOp2.hashCode() : 0);
        result = 31 * result + (buildDate != null ? buildDate.hashCode() : 0);
        result = 31 * result + (备注 != null ? 备注.hashCode() : 0);
        result = 31 * result + (modelCode != null ? modelCode.hashCode() : 0);
        result = 31 * result + (modelName != null ? modelName.hashCode() : 0);
        result = 31 * result + (更新账号 != null ? 更新账号.hashCode() : 0);
        result = 31 * result + (更新时间 != null ? 更新时间.hashCode() : 0);
        return result;
    }

    @Basic
    @Column(name = "appearance")
    public String getAppearance() {
        return appearance;
    }

    public void setAppearance(String appearance) {
        this.appearance = appearance;
    }
}
